﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MoodleDesktop
{
    public partial class fmSource : Form
    {
        public fmSource()
        {
            InitializeComponent();
        }

      

        private void btn_close_MouseEnter(object sender, EventArgs e)
        {
            btn_close.Image = Resource1.cancel_hover;
        }

        private void btn_close_MouseHover(object sender, EventArgs e)
        {
            btn_close.Image = Resource1.cancel_hover;
        }

        private void btn_close_MouseLeave(object sender, EventArgs e)
        {
            btn_close.Image = Resource1.cancel;
        }

        

        
        

        private void fmSource_Load(object sender, EventArgs e)
        {
            monHoc1.mySender = new MonHoc.onUserClick(monHoc1_Click);
            monHoc2.mySender = new MonHoc.onUserClick(monHoc2_Click);
            monHoc3.mySender = new MonHoc.onUserClick(monHoc3_Click);
            this.ShowInTaskbar = false;
        }

        

       

        private void btn_close_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void monHoc1_Load(object sender, EventArgs e)
        {
            monHoc1.txt_TenMonHoc.Text = "Thiết kế giao diện";
        }

        private void monHoc1_Click(object sender, EventArgs e)
        {
            fmForum fr = new fmForum();
            fr.Location = this.Location;
            fr.Show();
            this.Visible = false;
        }

        private void monHoc2_Click(object sender, EventArgs e)
        {
            fmForum fr = new fmForum();
            fr.Location = this.Location;
            fr.Show();
            this.Visible = false;
        }

        private void monHoc3_Click(object sender, EventArgs e)
        {
            fmForum fr = new fmForum();
            fr.Location = this.Location;
            fr.Show();
            this.Visible = false;
        }

        

       
    }
}
